package com.ethink.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ethink.order.api.info.TobSaleDetailOrderInfo;
import com.ethink.order.api.request.TobOrderSettleUpdateRequest;
import com.ethink.order.api.request.TobSaleDetailOrderAddRequest;
import com.ethink.order.api.request.TobSaleDetailOrderUpdateRequest;
import com.ethink.order.common.entity.TobSaleDetailOrder;

import java.util.List;

/**
 * TOB销售详单 Service接口
 *
 * @author default
 * @date 2022-11-16
 */
public interface TobSaleDetailOrderService extends IService<TobSaleDetailOrder> {
    void batchInsert(List<TobSaleDetailOrderAddRequest> item, String orderNo);

    /**
     * 新增
     * @param request
     * @return
     */
    void addTobSaleDetailOrder(TobSaleDetailOrderAddRequest request,String orderNo);

    void bulkUpdate(List<TobSaleDetailOrderUpdateRequest> item);

    List<TobSaleDetailOrderInfo> queryDetailOrderByOrderNo(String orderNo);

    void batchSettleDetail(List<TobOrderSettleUpdateRequest> requestList);

}